When the toplevel is a GdkOffscreenWindow which doesn't
implement the set_device_cursor() vfunc.
https://bugzilla.gnome.org/show_bug.cgi?id=675809
* which native window has what cursor set. */
toplevel = get_event_toplevel (pointer_window);
impl_class = GDK_WINDOW_IMPL_GET_CLASS (toplevel->impl);
- impl_class->set_device_cursor (toplevel, device, cursor);
+ if (impl_class->set_device_cursor)
+ impl_class->set_device_cursor (toplevel, device, cursor);
}
static gboolean